package com.itheima.d6_object_stream;

import java.io.Serial;
import java.io.Serializable;

public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = -2190454977090232084L;
    private String name;
    private transient int  age;
    private String skiil;

    public User() {
    }

    public User(String name, int age, String skiil) {
        this.name = name;
        this.age = age;
        this.skiil = skiil;
    }

    public String getSkiil() {
        return skiil;
    }

    public void setSkiil(String skiil) {
        this.skiil = skiil;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", skiil='" + skiil + '\'' +
                '}';
    }
}
